<?php 
Route::get('/admin', function () {
    return view('index');
});

Route::get('/admin', 'HomeController@index')->name('home');